package gc;

/**
 * Created by zhj on 15-11-13.
 * -Xms680M -Xmx680M -Xmn80M -XX:+UseSerialGC -XX：SurvivorRatio=10(串行gc性能太差，实际场景多用并行和并发)
 *
 * 1
 * -Xms680M -Xmx680M -Xmn80M -XX:+UseConcMarkSweepGC -XX:+PrintGCApplicationStoppedTime
 *      -XX:UseCMSCompactAtFullCollection -XX:CMSMaxAbortablePrecleanTime=5
 *      39 minorGC 1.197s  21 cmsGC 0.136s 总耗时1.333s 停顿 1.74s
 *
 * 2  -Xms680M -Xmx680M -Xmn80M -XX:+UseParallelGC -XX:+PrintGCApplicationStoppedTime
 *      119 minGC 2.774s   8 fullGC 0.243s 总耗时3.016s  停顿 3.11s
 *
 *
 * 由于cms gc多数动作和应用并发的，所以可以减少应用停顿
 */
public class Test {
}
